API

Human resource APIs

GET human-resources/employees/{employeeId}

Employee details for the provided identifier

HTTP method GET
URI https://api.rambase.net/human-resources/employees/{employeeId}
Supported formats Xml, Html, Json (ex. $format=json)
- URI parameter {employeeId} Employee identifier
Integer, minimum 100
Custom fields Custom fields supported
Successful HTTP status code 200
API resource identifier 413, version 31

The following body must be added to the request. Mouse over fieldnames for description and other useful information about the fields. Note that fields in bold are required/mandatory.

Format:
1
1

The query string is placed after the resource URL, seperated with a questionmark (?). The query string is composed of a series of query parameters with values. See the page about query parameters on how to use these parameters.

$showDomainDescriptions Boolean, optional Set to "true" to include domain descriptions for fields using domain values. See the Domain values page for more information. Default value is false.
$lang String, optional Specifies the language used in the response, following the 3-letter ISO-639-1 [lll]
$access_token String, optional After successful login you get an access token which needs to be provided in all API requests. Even though it is possible to pass this token as query parameter, we recommended passing it using the HTTP request header as described in Authorization. Note that all access tokens have an expiration time.
$db String, optional Set the database/company for the request
$format String, optional Set the format of the response to use for the request. Accepted values are "xml", "html", "jsonstream", "json"
$useMinimumVersion Integer, optional Used to run a new version of an API resource when your API client is running a deprecated API resource. See the Breaking changes page for more information.
$select String, optional Use to define the fields to return in the response. Accepts a comma-separated list of field names. See the Expand and select page for more information.
$showCustomFields Boolean, optional Set to "true" to include custom fields. Default value is false.

Read more about filters and sorting on how to use filter parameters and named filters.

Read more about filters and sorting on how to use sortable parameters

Requesting this resource will yield the following response. Mouse over fieldnames (or fieldgroups) for descriptions and other useful information about the fields. Fields colored in grey is expandable fields.

Please note that some fields may be removed from the response, based on user roles/duties/permissions.

Format:
1
<Employee>
2
     <EmployeeId
EmployeeId

Employee identifier

>
{Integer}</EmployeeId>
3
     <Status
Status

Status of employee

Possible domain values can be found here

>
{Integer}</Status>
4
     <LastName
LastName

Last name of employee

>
{String}</LastName>
5
     <FirstName
FirstName

First name of employee

>
{String}</FirstName>
6
     <Gender
Gender

Gender of the employee

Possible domain values can be found here

>
{String}</Gender>
7
     <JobTitle
JobTitle

Job title of employee. Ex. Sales manager

>
{String}</JobTitle>
8
     <Email
Email

Email address of the employee

>
{String}</Email>
9
     <WorkExperienceSummary
WorkExperienceSummary

The employee's summary of their whole work experience

>
{String}</WorkExperienceSummary>
10
     <WorkHourSettings>
11
          <TotalVacationDays
TotalVacationDays

Total eligible vacation from settings

>
{Integer}</TotalVacationDays>
12
          <ExternalSalaryId
ExternalSalaryId

Salary indentifier

>
{String}</ExternalSalaryId>
13
          <Approval>
14
               <ApprovalNote
ApprovalNote

Approval note for the employee

>
{String}</ApprovalNote>
15
          </Approval>
16
     </WorkHourSettings>
17
     <HomeAddress>
18
          <CountryCode
CountryCode

Country code of the employee

>
{String}</CountryCode>
19
     </HomeAddress>
20
     <Company>
21
          <CompanyId
CompanyId

Company identifier

>
{Integer}</CompanyId>
22
          <Name
Name

Name of company

>
{String}</Name>
23
          <Database
Database

Abbreviation/code to identify the company

>
{String}</Database>
24
          <CompanyLink
CompanyLink

Company reference

>
{String}</CompanyLink>
25
     </Company>
26
     <Department>
27
          <DepartmentId
DepartmentId

Department identifier

>
{Integer}</DepartmentId>
28
          <Name
Name

Name of department

>
{String}</Name>
29
          <DepartmentLink
DepartmentLink

Finance department reference

>
{String}</DepartmentLink>
30
     </Department>
31
     <Superior
Superior

Superior of the employee

>
32
          <EmployeeId
EmployeeId

Employee identifier

>
{Integer}</EmployeeId>
33
          <LastName
LastName

Last name of employee

>
{String}</LastName>
34
          <FirstName
FirstName

First name of employee

>
{String}</FirstName>
35
          <EmployeeLink
EmployeeLink

Employee reference

>
{String}</EmployeeLink>
36
     </Superior>
37
     <OfficeLocation>
38
          <LocationId
LocationId

Location identifier

>
{Integer}</LocationId>
39
          <Name
Name

Name of warehouse location

>
{String}</Name>
40
          <ShortName
ShortName

Unique abbreviation/short name of the location

>
{String}</ShortName>
41
          <LocationLink
LocationLink

Location reference

>
{String}</LocationLink>
42
     </OfficeLocation>
43
     <DefaultWarehouseLocation>
44
          <LocationId
LocationId

Location identifier

>
{Integer}</LocationId>
45
          <Name
Name

Name of warehouse location

>
{String}</Name>
46
          <ShortName
ShortName

Unique abbreviation/short name of the location

>
{String}</ShortName>
47
          <LocationLink
LocationLink

Location reference

>
{String}</LocationLink>
48
     </DefaultWarehouseLocation>
49
     <LaborGroup>
50
          <LaborGroupId
LaborGroupId

Labor group identifier

>
{Integer}</LaborGroupId>
51
          <Name
Name

Name of labor group

>
{String}</Name>
52
          <LaborGroupLink
LaborGroupLink

Labor group reference

>
{String}</LaborGroupLink>
53
     </LaborGroup>
54
</Employee>
1
{
2
     "employee": {
3
          "employeeId
EmployeeId

Employee identifier

":
"{Integer}",
4
          "status
Status

Status of employee

Possible domain values can be found here

":
"{Integer}",
5
          "lastName
LastName

Last name of employee

":
"{String}",
6
          "firstName
FirstName

First name of employee

":
"{String}",
7
          "gender
Gender

Gender of the employee

Possible domain values can be found here

":
"{String}",
8
          "jobTitle
JobTitle

Job title of employee. Ex. Sales manager

":
"{String}",
9
          "email
Email

Email address of the employee

":
"{String}",
10
          "workExperienceSummary
WorkExperienceSummary

The employee's summary of their whole work experience

":
"{String}",
11
          "workHourSettings": {
12
               "totalVacationDays
TotalVacationDays

Total eligible vacation from settings

":
"{Integer}",
13
               "externalSalaryId
ExternalSalaryId

Salary indentifier

":
"{String}",
14
               "approval": {
15
                    "approvalNote
ApprovalNote

Approval note for the employee

":
"{String}"
16
               }
17
          },
18
          "homeAddress": {
19
               "countryCode
CountryCode

Country code of the employee

":
"{String}"
20
          },
21
          "company": {
22
               "companyId
CompanyId

Company identifier

":
"{Integer}",
23
               "name
Name

Name of company

":
"{String}",
24
               "database
Database

Abbreviation/code to identify the company

":
"{String}",
25
               "companyLink
CompanyLink

Company reference

":
"{String}"
26
          },
27
          "department": {
28
               "departmentId
DepartmentId

Department identifier

":
"{Integer}",
29
               "name
Name

Name of department

":
"{String}",
30
               "departmentLink
DepartmentLink

Finance department reference

":
"{String}"
31
          },
32
          "superior
Superior

Superior of the employee

":
{
33
               "employeeId
EmployeeId

Employee identifier

":
"{Integer}",
34
               "lastName
LastName

Last name of employee

":
"{String}",
35
               "firstName
FirstName

First name of employee

":
"{String}",
36
               "employeeLink
EmployeeLink

Employee reference

":
"{String}"
37
          },
38
          "officeLocation": {
39
               "locationId
LocationId

Location identifier

":
"{Integer}",
40
               "name
Name

Name of warehouse location

":
"{String}",
41
               "shortName
ShortName

Unique abbreviation/short name of the location

":
"{String}",
42
               "locationLink
LocationLink

Location reference

":
"{String}"
43
          },
44
          "defaultWarehouseLocation": {
45
               "locationId
LocationId

Location identifier

":
"{Integer}",
46
               "name
Name

Name of warehouse location

":
"{String}",
47
               "shortName
ShortName

Unique abbreviation/short name of the location

":
"{String}",
48
               "locationLink
LocationLink

Location reference

":
"{String}"
49
          },
50
          "laborGroup": {
51
               "laborGroupId
LaborGroupId

Labor group identifier

":
"{Integer}",
52
               "name
Name

Name of labor group

":
"{String}",
53
               "laborGroupLink
LaborGroupLink

Labor group reference

":
"{String}"
54
          }
55
     }
56
}

Possible error codes the response might return:

Error 101013 HTTP 404 Sub-module not found
Error 102018 HTTP 403 You need permission {0}. Duties with this permission: {1}
Error 100086 HTTP 403 You have only access to the employees in your Company group